export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'left',
  dialogWidth: '90%',
  labelWidth: 120,
  dialogTop: '5%',
  searchMenuSpan: 6,
  menuWidth: 300,
  selection: true,
  expandWidth: 50,
  viewBtn: true,
  searchShow: false,
  column: [
    {
      type: 'input',
      label: '问题单号',
      prop: 'problemInforNum',
      span: 24,
      width: 145,
      search: true,
      formslot: true,
      slot: true,
      required: true,
      rules: [{ required: true, message: '选择问题主单' }]
    },
    {
      type: 'input',
      label: '整改单号',
      prop: 'number',
      search: true,
      span: 8,
      width: 130,
      display: false
    },
    {
      type: 'textarea',
      label: '整改措施',
      prop: 'describeText',
      // overHidden: true, // 超出隐藏
      width: 200,
      span: 24,
      display: true
    },
    {
      type: 'textarea',
      label: '问题描述',
      prop: 'infor',
      // overHidden: true, // 超出隐藏
      width: 200,
      span: 24,
      display: false
    },
    {
      type: 'textarea',
      label: '问题来源',
      prop: 'source',
      display: false,
      // overHidden: true, // 超出隐藏
      width: 200,
      span: 24
    },
    {
      type: 'input',
      label: '责任人',
      prop: 'thoseResponsibleIds',
      width: 160,
      hide: true,
      display: false,
      span: 24,
      rules: [{ required: true, message: '请选择责任人' }]
    },
    {
      type: 'input',
      label: '责任人',
      prop: 'thoseResponsible',
      formslot: true,
      slot: true,
      width: 160,
      search: true,
      span: 24
    },
    {
      label: '责任部门',
      prop: 'responsibilityDept',
      width: 160,
      span: 24,
      display: false,
      slot: true,
      formslot: true
    },
    {
      type: 'input',
      label: '职能部门名称',
      prop: 'functionalName',
      search: true,
      searchLabel: '职能部门',
      width: 120,
      span: 8,
      formslot: true,
      required: true,
      rules: [{ required: true, message: '选择职能部门' }]
    },
    {
      type: 'select',
      label: '完成情况',
      prop: 'completion',
      search: true,
      span: 8,
      width: 80,
      rules: [{ required: true, message: '请选择完成情况' }],
      props: {
        label: 'label',
        value: 'value'
      },
      dicData: [
        {
          label: '未完成',
          value: '0'
        },
        {
          label: '已整改',
          value: '1'
        },
        {
          label: '进行中',
          value: '2'
        },
        {
          label: '长期坚持',
          value: '3'
        },
        {
          label: '需回头看',
          value: '4'
        }
      ]
    },
    {
      type: 'select',
      label: '完成时限',
      prop: 'timelimitType',
      search: true,
      span: 8,
      dicData: [
        { label: '长期', value: '0' },
        { label: '限期', value: '1' },
        { label: '立行立改', value: '2' }
      ],
      cascaderItem: [],
      display: true,
      value: '0',
      props: { label: 'label', value: 'value' },
      formslot: true,
      required: true,
      rules: [{ required: true, message: '选择完成时限' }]
    },
    {
      type: 'date',
      label: '开始时间',
      prop: 'startdate',
      span: 8,
      width: 100,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      display: false,
      rules: [{ required: true, message: '选择开始时间' }]
    },
    {
      type: 'date',
      label: '规定完成日期',
      prop: 'enddate',
      span: 8,
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      display: false,
      rules: [{ required: true, message: '选择规定完成日期' }]
    },
    {
      type: 'textarea',
      label: '整改进展',
      prop: 'rectifiProgress',
      width: 200,
      span: 24,
      display: true,
      html: true
    },
    {
      type: 'input',
      label: '紧急程度',
      prop: 'emergency',
      width: 200,
      span: 8,
      display: false,
      hide: true
    },
    {
      type: 'number',
      label: '完成进度(%)',
      prop: 'completionBfb',
      precision: 2,
      width: 100,
      span: 12
    },
    {
      type: 'date',
      label: '实际完成日期',
      prop: 'completionDate',
      span: 12,
      display: true,
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd'
    },
    {
      type: 'textarea',
      label: '备注',
      prop: 'remarks',
      width: 300,
      span: 24,
      hide: true,
      display: true
    },
    {
      label: '附件信息',
      prop: 'uploadPage',
      type: 'input',
      formslot: true,
      slot: true,
      span: 24,
      hide: true
    }
  ]
}

export const tableOption2 = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'left',
  dialogWidth: '90%',
  labelWidth: 120,
  dialogTop: '5%',
  searchMenuSpan: 6,
  menuWidth: 250,
  selection: true,
  expandWidth: 50,
  viewBtn: true,
  searchShow: false,
  column: [
    {
      type: 'input',
      label: '问题单号',
      prop: 'problemInforNum',
      span: 24,
      width: 130,
      search: true,
      formslot: true,
      slot: true,
      required: true,
      rules: [{ required: true, message: '选择问题主单' }]
    },
    {
      type: 'input',
      label: '整改单号',
      prop: 'number',
      search: true,
      span: 8,
      width: 130,
      display: false
    },
    {
      type: 'textarea',
      label: '整改措施',
      prop: 'describeText',
      // overHidden: true, // 超出隐藏
      width: 200,
      span: 24,
      display: true
    },
    {
      label: '责任人',
      prop: 'thoseResponsible',
      width: 160,
      search: true,
      span: 24,
      slot: true,
      formslot: true
    },
    {
      label: '责任部门',
      prop: 'responsibilityDept',
      width: 160,
      span: 24,
      display: false,
      slot: true,
      formslot: true
    },
    {
      type: 'input',
      label: '职能部门名称',
      prop: 'functionalName',
      search: true,
      searchLabel: '职能部门',
      width: 120,
      span: 8,
      formslot: true,
      required: true,
      viewDisplay: false,
      editDisplay: false,
      rules: [{ required: true, message: '选择职能部门' }]
    },
    {
      type: 'select',
      label: '完成情况',
      prop: 'completion',
      search: true,
      span: 8,
      width: 80,
      display: true,
      props: {
        label: 'label',
        value: 'value'
      },
      dicData: [
        {
          label: '未完成',
          value: '0'
        },
        {
          label: '已整改',
          value: '1'
        },
        {
          label: '进行中',
          value: '2'
        },
        {
          label: '长期坚持',
          value: '3'
        },
        {
          label: '需回头看',
          value: '4'
        }
      ]
    },
    {
      type: 'select',
      label: '完成时限',
      prop: 'timelimitType',
      search: true,
      span: 8,
      dicData: [
        { label: '长期', value: '0' },
        { label: '限期', value: '1' },
        { label: '立行立改', value: '2' }
      ],
      cascaderItem: [],
      display: true,
      value: '0',
      props: { label: 'label', value: 'value' },
      formslot: true,
      required: true,
      rules: [{ required: true, message: '选择完成时限' }]
    },
    {
      type: 'date',
      label: '开始时间',
      prop: 'startdate',
      span: 12,
      width: 100,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      display: false
    },
    {
      type: 'date',
      label: '规定完成日期',
      prop: 'enddate',
      span: 12,
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      display: false
    },
    {
      type: 'textarea',
      label: '整改进展',
      prop: 'rectifiProgress',
      width: 200,
      span: 24,
      display: true,
      html: true
    },
    {
      type: 'input',
      label: '紧急程度',
      prop: 'emergency',
      width: 200,
      span: 8,
      display: false,
      hide: true
    },
    {
      type: 'number',
      label: '完成进度(%)',
      prop: 'completionBfb',
      precision: 2,
      width: 100,
      span: 12
    },
    {
      type: 'date',
      label: '实际完成日期',
      prop: 'completionDate',
      span: 12,
      display: true,
      width: 120,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd'
    },
    {
      type: 'textarea',
      label: '备注',
      prop: 'remarks',
      width: 300,
      span: 24,
      hide: true,
      display: true
    },
    {
      label: '附件信息',
      prop: 'uploadPage',
      type: 'input',
      formslot: true,
      slot: true,
      span: 24,
      hide: true
    }
  ]
}
